import { DisbaledProps } from "@/components/hooks"

export type InputComponentType =
    | "text"
    | "password"
    | "textarea"
    | "number"
    | "select"
    | "treeSelect"
    | "rate"
    | "slider"
    | "switch"
    | "colorPicker"
    | "datePicker"
    | "timePicker"
    | "autoComplete"
    | "cascader"
    | "checkbox"
    | "radio"
    | "checkboxGroup"
    | "radioGroup"

export interface InputProps extends DisbaledProps {
    // 类型
    type?: Component | InputComponentType
    // 属性名
    property?: string
    // 数据对象
    data?: Recordable
    // 是否可删除
    clearable?: boolean
    // 提示
    placeholder?: string
    // 编码
    code?: string
    // 原始属性
    nativeProps?: Recordable
}
